package org.jeecg.modules.car.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.common.util.StringUtils;
import org.jeecg.entity.charge.ChargePayConfig;
import org.jeecg.modules.car.mapper.ChargeCarpayConfigMapper;
import org.jeecg.modules.car.service.IChargeCarpayConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 车辆支付配置表
 * @Author: jeecg-boot
 * @Date: 2019-08-13
 * @Version: V1.0
 */
@Service
public class ChargeCarpayConfigServiceImpl extends ServiceImpl<ChargeCarpayConfigMapper, ChargePayConfig> implements IChargeCarpayConfigService {
    @Autowired
    ChargeCarpayConfigMapper chargeCarpayConfigMapper;

    public ChargePayConfig getCarConfigByPid(String pid) {
        if (null == pid || StringUtils.isEmpty(pid)) {
            return null;
        }
        ChargePayConfig payConfig = chargeCarpayConfigMapper.getCarConfigByPid(pid);
        return payConfig;
    }
}
